<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div.one{
            width: 400px;
            height: 200px;
            border: 1px solid darkkhaki;
            margin: 0 auto;
            overflow: hidden;
        }
        div.two{
            width: 1200px;
            height: 200px;
            border: 1px solid wheat;
            animation-name: name;
            animation-duration: 5s;
            animation-timing-function: linear;
            animation-iteration-count: 3;
        }
        div.two div{
            width: 400px;
            height: 200px;
            float: left;
        }
        div.two div>img{
            width: 400px;
            height: 200px;
            
        }
        @keyframes name{
            from{
                margin-left: 0px;
            }
            to{
                margin-left: -800px;
            }
        }
    </style>
</head>
<body>
    <div class="one">
        <div class="two">
        <div><img src="../1.jpg" alt=""></div>
        <div><img src="../2.jpeg" alt=""></div>
        <div><img src="../5.jpg" alt=""></div></div>
    </div>
</body>
</html>


